import axios from "@/api/http";


import qs from 'qs'

const queryList = (params: any = {}) => {
    return axios.post('/post/queryList', params)
}

const remove = (params: any = {}) => {
    return axios.post('/post/remove', qs.stringify(params))
}
const create = (params: any = {}) => {
    return axios.post('/post/create', params)
}
const update = (params: any = {}) => {
    return axios.post('/post/update', params)
}
const id = (params: any = {}) => {
    return axios.post('/post/id', qs.stringify(params))
}
const view = (params: any = {}) => {
    return axios.post('/post/view', qs.stringify(params))
}


export default {
    queryList,
    remove,
    create,
    update,
    id,
    view
}